﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Graphics.PackedVector;
using Microsoft.Xna.Framework;

namespace FrogEngine
{
	public struct StatefulParticleVertex : IVertexType
	{
		public Short2 Corner;

		public Short2 UV;

		// Describe the layout of this vertex structure.
		public static readonly VertexDeclaration vertexDeclaration = new VertexDeclaration
		(
			new VertexElement(0, VertexElementFormat.Short2,
								 VertexElementUsage.TextureCoordinate, 0),

			new VertexElement(4, VertexElementFormat.Short2,
								 VertexElementUsage.Position, 0)
		);

		public static int Size = 8;

		public VertexDeclaration VertexDeclaration { get { return vertexDeclaration; } }
	}
}
